[INFO] cloning repository https://github.com/codeTIT4N/rust-basics
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/codeTIT4N/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcodeTIT4N%2Frust-basics", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcodeTIT4N%2Frust-basics'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6213b1c42c6d864574c0e6091dadb95176fe5fd9
[INFO] checking codeTIT4N/rust-basics against master#2e677c0645862d17a12c6d04b3019203c8e23fcc for pr-106493
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcodeTIT4N%2Frust-basics" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/codeTIT4N/rust-basics on toolchain 2e677c0645862d17a12c6d04b3019203c8e23fcc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/codeTIT4N/rust-basics
[INFO] finished tweaking git repo https://github.com/codeTIT4N/rust-basics
[INFO] tweaked toml for git repo https://github.com/codeTIT4N/rust-basics written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/codeTIT4N/rust-basics already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fc3b92c5cf700e081bc08ad6c8783dac196e3242da444fc1c9af1421c455545f
[INFO] running `Command { std: "docker" "start" "-a" "fc3b92c5cf700e081bc08ad6c8783dac196e3242da444fc1c9af1421c455545f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fc3b92c5cf700e081bc08ad6c8783dac196e3242da444fc1c9af1421c455545f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fc3b92c5cf700e081bc08ad6c8783dac196e3242da444fc1c9af1421c455545f", kill_on_drop: false }`
[INFO] [stdout] fc3b92c5cf700e081bc08ad6c8783dac196e3242da444fc1c9af1421c455545f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 419ff017b11027908c22fa59d0e3a7340870ceb46182e776cb0834fcb4ac9033
[INFO] running `Command { std: "docker" "start" "-a" "419ff017b11027908c22fa59d0e3a7340870ceb46182e776cb0834fcb4ac9033", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling syn v1.0.86
[INFO] [stderr]    Compiling quote v1.0.15
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]     Checking thiserror v1.0.30
[INFO] [stderr]     Checking basics v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: constant `MAX_SPEED` is never used
[INFO] [stdout]  --> src/bin/const.rs:1:7
[INFO] [stdout]   |
[INFO] [stdout] 1 | const MAX_SPEED: i32 = 9000;
[INFO] [stdout]   |       ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clamp_speed` is never used
[INFO] [stdout]  --> src/bin/const.rs:3:4
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn clamp_speed(speed: i32) -> i32 {
[INFO] [stdout]   |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Admin`, `Manager`, and `User` are never constructed
[INFO] [stdout]  --> src/bin/expressions.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Access {
[INFO] [stdout]   |      ------ variants in this enum
[INFO] [stdout] 2 |     Admin,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 3 |     Manager,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 4 |     User,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Right` is never constructed
[INFO] [stdout]  --> src/bin/enums.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Direction {
[INFO] [stdout]   |      --------- variant in this enum
[INFO] [stdout] 2 |     Left,
[INFO] [stdout] 3 |     Right,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Manager` and `Supervisor` are never constructed
[INFO] [stdout]  --> src/bin/derive.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | enum Position {
[INFO] [stdout]   |      -------- variants in this enum
[INFO] [stdout] 3 |     Manager,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 4 |     Supervisor,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `SqlError` in this scope
[INFO] [stdout]  --> src/bin/customerrortypes.rs:7:27
[INFO] [stdout]   |
[INFO] [stdout] 7 |     DatabaseError(#[from] SqlError),
[INFO] [stdout]   |                           ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `position` and `work_hours` are never read
[INFO] [stdout]   --> src/bin/derive.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout] 8  | struct Employee {
[INFO] [stdout]    |        -------- fields in this struct
[INFO] [stdout] 9  |     position: Position,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 10 |     work_hours: i64,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Employee` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `SqlError` in this scope
[INFO] [stdout]  --> src/bin/customerrortypes.rs:7:27
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[derive(Error,Debug)]
[INFO] [stdout]   |               - help: you might be missing a type parameter: `<SqlError>`
[INFO] [stdout] ...
[INFO] [stdout] 7 |     DatabaseError(#[from] SqlError),
[INFO] [stdout]   |                           ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Connection` in this scope
[INFO] [stdout]   --> src/bin/customerrortypes.rs:23:27
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn login(user:&str,password:&str)->Result<String,LoginError>{
[INFO] [stdout]    |         - help: you might be missing a type parameter: `<Connection>`
[INFO] [stdout] 23 |     let connection:Result<Connection,std::io::Error>  = connect()?;
[INFO] [stdout]    |                           ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `SqlError` in this scope
[INFO] [stdout]   --> src/bin/customerrortypes.rs:26:35
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn login(user:&str,password:&str)->Result<String,LoginError>{
[INFO] [stdout]    |         - help: you might be missing a type parameter: `<SqlError>`
[INFO] [stdout] ...
[INFO] [stdout] 26 |         let session:Result<String,SqlError>=get_session(user_id)?;
[INFO] [stdout]    |                                   ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]   --> src/bin/iflet.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 |     if let red = Color::Red {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]    = help: consider replacing the `if let` with a `let`
[INFO] [stdout]    = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `red`
[INFO] [stdout]   --> src/bin/iflet.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |     if let red = Color::Red {
[INFO] [stdout]    |            ^^^ help: if this is intentional, prefix it with an underscore: `_red`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Orange` and `Blue` are never constructed
[INFO] [stdout]  --> src/bin/iflet.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Color {
[INFO] [stdout]   |      ----- variants in this enum
[INFO] [stdout] 2 |     Red,
[INFO] [stdout] 3 |     Orange,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 4 |     Blue,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `plus_one`
[INFO] [stdout]  --> src/bin/iterators.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let plus_one: Vec<_> = numbers.iter().map(|num| num + 1).collect();
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_one`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_numbers`
[INFO] [stdout]   --> src/bin/iterators.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let new_numbers: Vec<_> = numbers.iter().filter(|num| num <= &&3).collect();
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_numbers`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `find_me`
[INFO] [stdout]   --> src/bin/iterators.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let find_me: Option<_> = numbers.iter().find(|num| num == &&3); //finds 3
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_me`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `count`
[INFO] [stdout]   --> src/bin/iterators.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let count = numbers.iter().count(); //counts number of elements
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last`
[INFO] [stdout]   --> src/bin/iterators.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let last: Option<_> = numbers.iter().last(); //returns last number
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_last`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `min`
[INFO] [stdout]   --> src/bin/iterators.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let min: Option<_> = numbers.iter().min(); //return minimum number
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_min`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max`
[INFO] [stdout]   --> src/bin/iterators.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let max: Option<_> = numbers.iter().max(); //return maximum number
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_max`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `take`
[INFO] [stdout]   --> src/bin/iterators.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let take: Vec<_> = numbers.iter().take(3).collect(); //takes first 3 items from vector
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_take`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `plus_one`
[INFO] [stdout]   --> src/bin/iterators.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let plus_one: Vec<_> = numbers
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_one`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `connect` in this scope
[INFO] [stdout]   --> src/bin/customerrortypes.rs:23:57
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let connection:Result<Connection,std::io::Error>  = connect()?;
[INFO] [stdout]    |                                                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_user_id` in this scope
[INFO] [stdout]   --> src/bin/customerrortypes.rs:24:19
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let user_id = get_user_id(user)?;
[INFO] [stdout]    |                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Admin`, `Manager`, and `User` are never constructed
[INFO] [stdout]  --> src/bin/expressions.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Access {
[INFO] [stdout]   |      ------ variants in this enum
[INFO] [stdout] 2 |     Admin,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 3 |     Manager,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 4 |     User,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `try_password` in this scope
[INFO] [stdout]   --> src/bin/customerrortypes.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 |     if try_password(user_id,password)?{
[INFO] [stdout]    |        ^^^^^^^^^^^^ help: a local variable with a similar name exists: `password`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_session` in this scope
[INFO] [stdout]   --> src/bin/customerrortypes.rs:26:45
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let session:Result<String,SqlError>=get_session(user_id)?;
[INFO] [stdout]    |                                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `basics` due to 9 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: function `hello` is private
[INFO] [stdout]   --> src/bin/modules.rs:19:16
[INFO] [stdout]    |
[INFO] [stdout] 19 |     use greet::hello;
[INFO] [stdout]    |                ^^^^^ private function
[INFO] [stdout]    |
[INFO] [stdout] note: the function `hello` is defined here
[INFO] [stdout]   --> src/bin/modules.rs:2:5
[INFO] [stdout]    |
[INFO] [stdout] 2  |     fn hello() {
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: function `goodbye` is private
[INFO] [stdout]   --> src/bin/modules.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |     greet::goodbye();
[INFO] [stdout]    |            ^^^^^^^ private function
[INFO] [stdout]    |
[INFO] [stdout] note: the function `goodbye` is defined here
[INFO] [stdout]   --> src/bin/modules.rs:6:5
[INFO] [stdout]    |
[INFO] [stdout] 6  |     fn goodbye() {
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: function `add` is private
[INFO] [stdout]   --> src/bin/modules.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let ans = math::add(2, 1);
[INFO] [stdout]    |                     ^^^ private function
[INFO] [stdout]    |
[INFO] [stdout] note: the function `add` is defined here
[INFO] [stdout]   --> src/bin/modules.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     fn add(a: i32, b: i32) -> i32 {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0603`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]  --> src/bin/whilelet.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 |     while let Some(i) = data {
[INFO] [stdout]   |                    ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `basics` due to 4 previous errors
[INFO] [stdout] warning: field `content` is never read
[INFO] [stdout]  --> src/bin/hashmap.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct Contents {
[INFO] [stdout]   |        -------- field in this struct
[INFO] [stdout] 5 |     content: String,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Contents` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_SPEED` is never used
[INFO] [stdout]  --> src/bin/const.rs:1:7
[INFO] [stdout]   |
[INFO] [stdout] 1 | const MAX_SPEED: i32 = 9000;
[INFO] [stdout]   |       ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clamp_speed` is never used
[INFO] [stdout]  --> src/bin/const.rs:3:4
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn clamp_speed(speed: i32) -> i32 {
[INFO] [stdout]   |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]  --> src/bin/whilelet.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 |     while let Some(i) = data {
[INFO] [stdout]   |                    ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `all_caps` is never used
[INFO] [stdout]  --> src/bin/testing.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn all_caps(word: &str) -> String {
[INFO] [stdout]   |    ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/bin/defaulttrait.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let p = Package::default();
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes_stack`
[INFO] [stdout]  --> src/bin/heap.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let yes_stack = *yes_heap;
[INFO] [stdout]   |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_yes_stack`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `weight` is never read
[INFO] [stdout]  --> src/bin/defaulttrait.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Package {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] 2 |     weight: f64,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `No` is never constructed
[INFO] [stdout]  --> src/bin/heap.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Answer {
[INFO] [stdout]   |      ------ variant in this enum
[INFO] [stdout] 2 |     Yes,
[INFO] [stdout] 3 |     No,
[INFO] [stdout]   |     ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/bin/defaulttrait.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 |     fn new(weight: f64) -> Self {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "419ff017b11027908c22fa59d0e3a7340870ceb46182e776cb0834fcb4ac9033", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "419ff017b11027908c22fa59d0e3a7340870ceb46182e776cb0834fcb4ac9033", kill_on_drop: false }`
[INFO] [stdout] 419ff017b11027908c22fa59d0e3a7340870ceb46182e776cb0834fcb4ac9033
